package org.samoji.sji.model;
import java.math.BigDecimal;
import java.util.HashMap;


public class Env {
	private HashMap<String, BigDecimal> env;
	
	public Env() {
		this.env = new HashMap<String, BigDecimal>();
	}
	
	public BigDecimal get(String id) {
		if(env.containsKey(id)) {
			return env.get(id);
		} else {
			throw new RuntimeException(id + " not in env");
		}
	}
	
	public void put(String id, BigDecimal value) {
		env.put(id, value);
	}
}
